package com.xydtech.ecard.config.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.xydtech.common.annotation.Excel;
import com.xydtech.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.util.Date;

/**
 * 电子名片首页配置对象 ecard_home_page_config
 *
 * @author xydtech
 * @date 2024-10-25
 */
public class EcardHomePageConfig extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键id */
    private Long id;

    /** 创建人ID */
    @Excel(name = "创建人ID")
    private Long creatorId;

    /** 首页banner */
    @Excel(name = "首页banner")
    private String homeBanner;

    /** 创建时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "创建时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date creationTime;

    /** 状态0停用,1启用 */
//    @Excel(name = "状态0停用,1启用")
    private Integer state;

    /** 创建人 */
    @Excel(name = "创建人")
    private String userName;

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId()
    {
        return id;
    }
    public void setCreatorId(Long creatorId)
    {
        this.creatorId = creatorId;
    }

    public Long getCreatorId()
    {
        return creatorId;
    }
    public void setHomeBanner(String homeBanner)
    {
        this.homeBanner = homeBanner;
    }

    public String getHomeBanner()
    {
        return homeBanner;
    }
    public void setCreationTime(Date creationTime)
    {
        this.creationTime = creationTime;
    }

    public Date getCreationTime()
    {
        return creationTime;
    }
    public void setState(Integer state)
    {
        this.state = state;
    }

    public Integer getState()
    {
        return state;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("id", getId())
                .append("creatorId", getCreatorId())
                .append("homeBanner", getHomeBanner())
                .append("creationTime", getCreationTime())
                .append("state", getState())
                .append("remark", getRemark())
                .append("userName", getUserName())
                .toString();
    }
}
